<?xml version="1.0" ?>
<!DOCTYPE msxconfig SYSTEM 'msxconfig2.dtd'>
<msxconfig>

  <info>
    <manufacturer>Talent</manufacturer>
    <code>TPC-310</code>
    <release_year>1988</release_year>
    <description>The most advanced Argentinian MSX, includes turbo BASIC and several built in programs.</description>
    <type>MSX2</type>
  </info>

  <MapperReadBackBits>largest</MapperReadBackBits>

  <CassettePort/>

  <devices>

    <S1985 id="S1985"> <!-- Actually seems to be an YM3814, which is the same? -->
      <sramname>tpc-310_s1985.sram</sramname>
    </S1985>

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>es</keyboard_type>
      <has_keypad>false</has_keypad>
      <key_ghosting_sgc_protected>true</key_ghosting_sgc_protected>
      <code_kana_locks>false</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <version>V9938</version>
      <vram>128</vram>
      <io base="0x98" num="8" type="O"/> <!-- S-1985 mirrors -->
      <io base="0x98" num="8" type="I"/> <!-- S-1985 mirrors -->
    </VDP>

    <PSG id="PSG">
      <type>YM2149</type> <!-- in S-1985 MSX-ENGINE -->
      <sound>
        <volume>21000</volume>
      </sound>
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <ignorePortDirections>true</ignorePortDirections> <!-- not sure, but guess based on use of Engine IC -->
    </PSG>

    <RTC id="Real time clock">
      <sramname>tpc-310.cmos</sramname>
      <io base="0xB4" num="2" type="O"/>
      <io base="0xB5" num="1" type="I"/>
    </RTC>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="2"/>
    </PrinterPort>

    <primary slot="0">

        <ROM id="MSX BIOS with BASIC ROM">
          <rom>
            <filename>tpc-310_basic-bios2.rom</filename>
            <sha1>7bba23669b7abfb6a142f9e1735b847d6e4e8267</sha1>
          </rom>
          <mem base="0x0000" size="0x8000"/>
        </ROM>

    </primary>

    <primary slot="1">
      <MemoryMapper id="Main RAM">
        <size>128</size>
        <mem base="0x0000" size="0x10000"/>
      </MemoryMapper>
    </primary>

    <primary external="true" slot="2"/>

    <primary slot="3">

      <secondary slot="0">
        <ROM id="MSX Sub ROM">
          <rom>
            <filename>tpc-310_msx2sub.rom</filename>
            <sha1>39dfc46260f99b670916b1e55f67a5d4136e6e54</sha1>
          </rom>
          <mem base="0x0000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="0">
        <ROM id="Turbo BASIC ROM">
          <rom>
            <filename>tpc-310_turbo.rom</filename>
            <sha1>181bf58da7184e128cd419da3109b93344a543cf</sha1>
          </rom>
          <mem base="0x4000" size="0x4000"/>
        </ROM>
      </secondary>

      <secondary slot="1">
        <ROM id="Accessories ROM">
          <rom>
            <filename>tpc-310_accessories.rom</filename>
            <sha1>cdeb0ed8adecaaadb78d5a5364fd603238591685</sha1>
          </rom>
          <mem base="0x4000" size="0x8000"/>
        </ROM>
      </secondary>

      <secondary external="true" slot="2"/> <!-- Note: this connector is actually a non-standard expansion connector on the back. According to flyguille it is mapped to slot 3-2 indeed. -->

    </primary>

  </devices>

</msxconfig>
